package com.spring.utils;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.stream.Collectors;

public enum ScopeType {

    SINGLETON("singleton"),

    PROTOTYPE("prototype");

    final String type;

    ScopeType(String type) {
        this.type = type;
    }

    public final static Map<String, ScopeType> ScopeTypeMap = Arrays.stream(ScopeType.values()).collect(Collectors.toMap(v -> v.type, v -> v));
}
